#include <stdio.h>
#include <sqlite3.h>

void usage (void) {
	printf("Usage:\r\n");
	printf("create db_file_name\r\n");
}

int main(int argc, char* argv[]) {
	
	sqlite3 *db;
	char *zErrMsg = 0;
	int rc;

	if ( argc == 2 ) {
		rc = sqlite3_open(argv[1], &db);
	} else {
		usage();
		return 0;
	}

	if( rc ){
		fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db));
		return 0;
	}else{
		fprintf(stderr, "Opened database successfully\n");
	}
	
	sqlite3_close(db);
}
